Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

Q is empty.


QTRS
  ↳ Overlay + Local Confluence

Q restricted rewrite system:
The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

Q is empty.

The TRS is overlay and locally confluent. By [19] we can switch to innermost.

↳ QTRS
  ↳ Overlay + Local Confluence
QTRS
      ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))


Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

MIN(x, cons(y, z)) → MIN(y, z)
MIN(x, cons(y, z)) → MIN(x, z)
MINSORT(cons(x, y)) → MIN(x, y)
MIN(x, cons(y, z)) → LE(x, y)
DEL(x, cons(y, z)) → EQ(x, y)
MINSORT(cons(x, y)) → DEL(min(x, y), cons(x, y))
EQ(s(x), s(y)) → EQ(x, y)
MIN(x, cons(y, z)) → IF(le(x, y), min(x, z), min(y, z))
MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y)))
DEL(x, cons(y, z)) → DEL(x, z)
DEL(x, cons(y, z)) → IF(eq(x, y), z, cons(y, del(x, z)))
LE(s(x), s(y)) → LE(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
QDP
          ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MIN(x, cons(y, z)) → MIN(y, z)
MIN(x, cons(y, z)) → MIN(x, z)
MINSORT(cons(x, y)) → MIN(x, y)
MIN(x, cons(y, z)) → LE(x, y)
DEL(x, cons(y, z)) → EQ(x, y)
MINSORT(cons(x, y)) → DEL(min(x, y), cons(x, y))
EQ(s(x), s(y)) → EQ(x, y)
MIN(x, cons(y, z)) → IF(le(x, y), min(x, z), min(y, z))
MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y)))
DEL(x, cons(y, z)) → DEL(x, z)
DEL(x, cons(y, z)) → IF(eq(x, y), z, cons(y, del(x, z)))
LE(s(x), s(y)) → LE(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 5 SCCs with 6 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
QDP
                ↳ UsableRulesProof
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ(s(x), s(y)) → EQ(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ(s(x), s(y)) → EQ(x, y)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ(s(x), s(y)) → EQ(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
QDP
                ↳ UsableRulesProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DEL(x, cons(y, z)) → DEL(x, z)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DEL(x, cons(y, z)) → DEL(x, z)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DEL(x, cons(y, z)) → DEL(x, z)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
QDP
                ↳ UsableRulesProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LE(s(x), s(y)) → LE(x, y)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LE(s(x), s(y)) → LE(x, y)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LE(s(x), s(y)) → LE(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
QDP
                ↳ UsableRulesProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MIN(x, cons(y, z)) → MIN(x, z)
MIN(x, cons(y, z)) → MIN(y, z)

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MIN(x, cons(y, z)) → MIN(x, z)
MIN(x, cons(y, z)) → MIN(y, z)

R is empty.
The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MIN(x, cons(y, z)) → MIN(y, z)
MIN(x, cons(y, z)) → MIN(x, z)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
QDP
                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y)))

The TRS R consists of the following rules:

le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
if(true, x, y) → x
if(false, x, y) → y
minsort(nil) → nil
minsort(cons(x, y)) → cons(min(x, y), minsort(del(min(x, y), cons(x, y))))
min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, nil) → nil
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y)))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
minsort(nil)
minsort(cons(x0, x1))
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

minsort(nil)
minsort(cons(x0, x1))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y)))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x, y)) → MINSORT(del(min(x, y), cons(x, y))) at position [0] we obtained the following new rules:

MINSORT(cons(x, y)) → MINSORT(if(eq(min(x, y), x), y, cons(x, del(min(x, y), y))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
QDP
                            ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x, y)) → MINSORT(if(eq(min(x, y), x), y, cons(x, del(min(x, y), y))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MINSORT(cons(x, y)) → MINSORT(if(eq(min(x, y), x), y, cons(x, del(min(x, y), y)))) at position [0] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(min(x0, cons(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(min(x0, nil), nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(min(x0, cons(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
QDP
                                ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(min(x0, cons(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(min(x0, nil), nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(min(x0, cons(x1, x2)), cons(x1, x2)))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(min(x0, cons(x1, x2)), cons(x1, x2))))) at position [0,2,1] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
QDP
                                    ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(min(x0, cons(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(min(x0, nil), nil))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(min(x0, nil), nil)))) at position [0,2,1] we obtained the following new rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
QDP
                                        ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(min(x0, cons(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(min(x0, cons(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2))))) at position [0,0,0] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
QDP
                                            ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, nil)) → MINSORT(if(eq(min(x0, nil), x0), nil, cons(x0, del(x0, nil)))) at position [0,0,0] we obtained the following new rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(x0, nil))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
QDP
                                                ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(min(x0, cons(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2)))))) at position [0,2,1,0,0] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
                                              ↳ QDP
                                                ↳ Rewriting
QDP
                                                    ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2)))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), cons(x1, x2))))) at position [0,2,1] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ Rewriting
QDP
                                                        ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(x0, nil))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, del(x0, nil)))) at position [0,2,1] we obtained the following new rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ Rewriting
                                                      ↳ QDP
                                                        ↳ Rewriting
QDP
                                                            ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2))))))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(min(x0, cons(x1, x2)), x2)))))) at position [0,2,1,2,1,0] we obtained the following new rules:

MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ Rewriting
                                                      ↳ QDP
                                                        ↳ Rewriting
                                                          ↳ QDP
                                                            ↳ Rewriting
QDP
                                                                ↳ MNOCProof

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

The set Q consists of the following terms:

le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
if(true, x0, x1)
if(false, x0, x1)
min(x0, nil)
min(x0, cons(x1, x2))
del(x0, nil)
del(x0, cons(x1, x2))

We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [17] to decrease Q to the empty set.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Rewriting
                          ↳ QDP
                            ↳ Narrowing
                              ↳ QDP
                                ↳ Rewriting
                                  ↳ QDP
                                    ↳ Rewriting
                                      ↳ QDP
                                        ↳ Rewriting
                                          ↳ QDP
                                            ↳ Rewriting
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ Rewriting
                                                      ↳ QDP
                                                        ↳ Rewriting
                                                          ↳ QDP
                                                            ↳ Rewriting
                                                              ↳ QDP
                                                                ↳ MNOCProof
QDP

Q DP problem:
The TRS P consists of the following rules:

MINSORT(cons(x0, nil)) → MINSORT(if(eq(x0, x0), nil, cons(x0, nil)))
MINSORT(cons(x0, cons(x1, x2))) → MINSORT(if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x0), cons(x1, x2), cons(x0, if(eq(if(le(x0, x1), min(x0, x2), min(x1, x2)), x1), x2, cons(x1, del(if(le(x0, x1), min(x0, x2), min(x1, x2)), x2))))))

The TRS R consists of the following rules:

min(x, nil) → x
min(x, cons(y, z)) → if(le(x, y), min(x, z), min(y, z))
del(x, cons(y, z)) → if(eq(x, y), z, cons(y, del(x, z)))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
del(x, nil) → nil
if(true, x, y) → x
if(false, x, y) → y
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)

Q is empty.
We have to consider all (P,Q,R)-chains.